//
//  MenuCollectionViewCell.m
//  ProjectA
//
//  Created by 李赐岩 姜雪 张昕锐 on 15/3/6.
//  Copyright (c) 2015年 李赐岩 姜雪 张昕锐. All rights reserved.
//

#import "MenuCollectionViewCell.h"

@implementation MenuCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatCollectionCell];
    }
    return self;
}

-(void)creatCollectionCell
{
    
    
    self.cellImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
    self.cellImage.layer.masksToBounds = YES;
    self.cellImage.layer.cornerRadius = 8.0;
    self.cellImage.layer.borderWidth = 2.0;
    self.cellImage.layer.borderColor = [UIColor lightGrayColor].CGColor;
    [self.contentView addSubview:self.cellImage];
    
    self.cellLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.cellImage.frame.origin.x, self.cellImage.frame.origin.y + self.cellImage.frame.size.height - 30, self.cellImage.frame.size.width, 20)];
    self.cellLabel.textColor = [UIColor whiteColor];
    self.cellLabel.font = [UIFont systemFontOfSize:20];
    self.cellLabel.textAlignment = NSTextAlignmentLeft;
    [self.cellImage addSubview:self.cellLabel];
    
    
    
    
}

@end
